<template>
  <div class="home">
    <router-view class="page"></router-view>
    <ul class="tab">
      <router-link exact-active-class="active" tag="li" to="/index">首页</router-link>
      <router-link exact-active-class="active" tag="li" to="/type">分类</router-link>
      <router-link exact-active-class="active" tag="li" to="/cart">购物车</router-link>
      <router-link exact-active-class="active" tag="li" to="/profile">我的</router-link>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'Home',

  data() {
    return {
    }
  },

  methods: {
  },
  watch: {
  }
}
</script>
<style lang="scss" scoped>
.page {
  height: calc(100% - 50px);
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tab {
  height: 50px;
  display: flex;
  justify-content: space-between;
  background-color: #ccc;
  li {
    flex-basis: 25%;
    line-height: 50px;
    text-align: center;
  }
  .active {
    background-color: green;
    color: #fff;
  }
}
</style>
